/*
 * @Description:
 * @Author: fhw
 * @Date: 2022-08-06 13:48:11
 */
import { forwardRef, Module } from '@nestjs/common'
import { SocketMessageService } from './socket-message.service'
import { SocketMessageGateway } from './socket-message.gateway'
import { TypeOrmModule } from '@nestjs/typeorm'
import { ChatUserFriend } from '../../chat_user_friends/entities/chat_user_friend.entity'
import { ChatUserModule } from '../../chat_user/chat_user.module'
import { ConfigModule } from '../config/config.module'
import { UserChatRecord } from 'src/chat-record/entities/user-chat-record.entity'
import { SysMessageModule } from 'src/sys_message/sys_message.module'

@Module({
  imports: [
    TypeOrmModule.forFeature([UserChatRecord, ChatUserFriend]),
    forwardRef(() => ChatUserModule),
    forwardRef(() => ConfigModule),
    forwardRef(() => SysMessageModule),
  ],
  providers: [SocketMessageGateway, SocketMessageService],
  exports: [SocketMessageGateway, SocketMessageService]
})
export class SocketMessageModule { }
